﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<FamilyTreeProject.Individual>" MasterPageFile="~/Views/Shared/Site.Master" %>
<%@ Import Namespace="System.Web.Mvc.Html"%>
<%@ Import Namespace="FamilyTreeProject.Web" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <% Html.RenderPartial("IndividualDetail", ViewData.Model); %>
    <br />
    <%= Html.ActionLink("Delete", "Delete", "Individuals",
                            new { Controller = "Individuals", Id = ViewData.Model.Id }, 
                            new {@class = "link",
                                 onclick = "return confirm('Are you sure you want to delete " + ViewData.Model.FirstName +
                                        " " + ViewData.Model.LastName + "?')"})%>&nbsp;
    <%= Html.ActionLink("Edit", "Edit", "Individuals",
                                new { Controller = "Individuals", Id = ViewData.Model.Id }, 
                                new {@class = "link"})%>&nbsp;
    <%= Html.ActionLink("Return to List", "List", "Individuals", 
                                    new {Controller = "Individuals"}, 
                                    new {@class = "link" })%>&nbsp;
</asp:Content>
